﻿/*-----------------------------------------------
// File: DropBall.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

namespace Battle.View
{
    public class DropBall : MonoBehaviour
    {
        /// <summary>
        /// 谁掉的
        /// </summary>
        public BattleCharacter dropBC;


        public const float g = 9.8f;

        public bool isRun = false;

        #region DropDown
        public virtual float GetDropDownTime() {
            return 1f;
        }
        #endregion

        #region DropDownWait
        public virtual float GetDropDownWaitTime() {
            return 1.5f;
        }
        #endregion

        /// <summary>
        /// 初始化initPosition, dropDir, initSpeed, acceleration
        /// </summary>
        protected virtual void Drop0() {

        }

        void Update() {
            DropTick();
        }

        protected virtual void DropTick() {

        }

        protected virtual void Dispear() { }

    }
}
